﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WebMVC.Models.AddReviewViewModel>" %>
<h2><%=ViewResources.TaxiStrings.LeaveReviewHeader %></h2>
<div id="add-review-panel" class="ui-corner-all">
 <% using (Html.BeginForm("AddReview", "Taxi", new { id = Model.ServiceId }))
{ %>

<div id="commenter-name">
<%=Html.LabelFor(m => m.CommenterName) %>
<%=Html.TextBoxFor(m => m.CommenterName, (String.IsNullOrEmpty(Profile.FullName) ? null as object : new {disabled = "disabled" } as object))%> 

<a id="forget-me-link" href="javascript:void" <%= String.IsNullOrEmpty(Profile.FullName) ? "style='display:none'" : "" %> title="<%=ViewResources.TaxiStrings.NotYouLinkDesc %>"><%=ViewResources.TaxiStrings.NotYouLinkText %></a>

</div>
<div id="comment-area">
<label class="clear-fix"><%=Html.LabelFor(m => m.Comment) %></label>
    <%=Html.TextAreaFor(m => m.Comment) %> 
</div>    
<div id="rate-area">
    <label class="clear-fix"><%=ViewResources.TaxiStrings.RateHead %></label>
    
    <label class="clear-fix"><%=ViewResources.TaxiStrings.RateCarLabel %></label>
    <%=Html.EditorFor(m => m.CarRate)%>
    <label class="clear-fix"><%=ViewResources.TaxiStrings.RateServiceLabel %></label>
    <%=Html.EditorFor(m => m.ServiceRate)%>
    <label class="clear-fix"><%=ViewResources.TaxiStrings.RateDriverLabel %></label>
    <%=Html.EditorFor(m => m.DriverRate)%>
    <label class="clear-fix"><%=ViewResources.TaxiStrings.RatePriceLabel %></label>
    <%=Html.EditorFor(m => m.PriceRate) %>
</div>
<div><input type="submit" value="<%=ViewResources.TaxiStrings.AddReviewButtonText %>" /> <img alt='submit-loading' src='/img/design/crystal-arrows.gif' style='display:none' id='loading-anim'/></div>
<%} %>
</div>